<%--
  Created by IntelliJ IDEA.
  User: zzz
  Date: 2020/1/21
  Time: 15:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
</head>
<body>
<div class="side-menu">
    <div class='side-menu-body'>
        <ul id="nav">
            <li class="side-menu-divider">导航</li>
            <li ><a id="index1" href="${APP_PATH}/toManager"><i class="icon ti-home"></i> <span>首页</span> </a></li>
            <li><a id="index2" href="${APP_PATH}/toMyGoods"><i class="icon ti-package"></i> <span>我的商品</span> </a></li>
            <li><a id="index3" href="${APP_PATH}/toMyOrders"><i class="icon ti-clipboard"></i> <span>我的订单</span> </a></li>
            <li><a id="index4" href="${APP_PATH}/toMyLogistics"><i class="icon ti-truck"></i> <span>物流查询</span> </a></li>
<%--            <li><a id="index5" href="${APP_PATH}/toMyDatas"><i class="icon ti-bar-chart-alt"></i> <span>销售统计</span> </a></li>--%>
            <li><a id="index6" href="${APP_PATH}/toAdminInfo"><i class="icon ti-user"></i> <span>个人中心</span> </a></li>
        </ul>
    </div>
</div>

</body>

</html>
<script type="text/javascript" src="${APP_PATH}/js/jquery-3.3.1.min.js"></script>
<script>
    $(function () {
        var pathname = window.location.pathname;
        if (pathname == '/FurnitureMall/toManager') {
            $("#index1").addClass("active");
        } else if (pathname == '/FurnitureMall/toMyGoods') {
            $("#index2").addClass("active");
        } else if (pathname == '/FurnitureMall/toKindsType') {
            $("#index2").addClass("active");
        } else if (pathname == '/FurnitureMall/toFurniture') {
            $("#index2").addClass("active");
        } else if (pathname == '/FurnitureMall/toFurniture_Insert') {
            $("#index2").addClass("active");
        } else if (pathname == '/FurnitureMall/toFurniture_Detail') {
            $("#index2").addClass("active");
        } else if (pathname == '/FurnitureMall/toMyOrders') {
            $("#index3").addClass("active");
        } else if (pathname == '/FurnitureMall/toOrder_Detail') {
            $("#index3").addClass("active");
        } else if (pathname == '/FurnitureMall/toMyLogistics') {
            $("#index4").addClass("active");
        } else if (pathname == '/FurnitureMall/toLogistics_Detail') {
            $("#index4").addClass("active");
        } else if (pathname == '/FurnitureMall/toMyDatas') {
            $("#index5").addClass("active");
        }else if (pathname == '/FurnitureMall/toAdminInfo') {
            $("#index6").addClass("active");
        }

    });


</script>
